import request from '@/utils/request'

// 累计入金统计
export function cryptoDepositTotalSta(query) {
  return request({
    url: '/system/finance/crypto/depositTotal/sta',
    method: 'get',
    loading: true,
    params: query
  })
}

// crypto 池统计
export function cryptoPoolTotalSta(query) {
  return request({
    url: '/system/finance/crypto/poolTotal/sta',
    method: 'get',
    loading: true,
    params: query
  })
}

// 累计出金统计
export function cryptoWithdrawTotalSta(query) {
  return request({
    url: '/system/finance/crypto/withdrawTotal/sta',
    method: 'get',
    loading: true,
    params: query
  })
}

// 用户出金利润统计
export function cryptoMemberWithdrawProfitSta(scene) {
  return request({
    url: '/system/finance/crypto/memberWithdrawProfit/sta/' + scene,
    method: 'get',
    loading: true
  })
}

// 入金占比统计（饼图）
export function cryptoDepositTotalByChainAndYearSta(query) {
  return request({
    url: '/system/finance/crypto/depositTotalByChainAndYear/sta',
    method: 'get',
    loading: true,
    params: query
  })
}
